package com.zxy.ziems.server.monitor.pojo.hik;

import lombok.Data;

/**
 * 海康响应
 * @author chdzq
 * @create 2023/5/6
 */
@Data
public class HikResult<T> {

    private String msg;

    private T data;

    private String code;

    /**
     * 是否响应成功
     * @return
     */
    public static Boolean isSuccess(HikResult result) {
        if (null == result) {
            return Boolean.FALSE;
        }
        return "0".equals(result.getCode());
    }
}
